package cn.pink.common.entity.game.item;

import cn.pink.common.constant.DBConst;
import cn.pink.core.entity.AbstractEntity;
import cn.pink.core.gen.entity.Entity;

import java.util.List;
import java.util.Map;

/**
 * 角色道具
 * @Author: pink
 * @Date: 2022/7/19 11:46
 */
@Entity(tableKey = DBConst.DB_KEY_HUMAN_ITEM)
public class EntityHumanItem extends AbstractEntity {
    /** 角色道具列表 */
    private transient Map<Integer, EntityHumanItemData> itemMap;

    private Map<Integer, String> testMap;

    private List<String> testList;

    private String testStr;

    private int testInt;

    public EntityHumanItem(String humanId) {
        init(humanId);
    }

    @Override
    public void makeKey() {
        keyPrefix = DBConst.DB_KEY_HUMAN_ITEM;
    }

    public Map<Integer, EntityHumanItemData> getItemMap() {
        return itemMap;
    }

    public void setItemMap(Map<Integer, EntityHumanItemData> itemMap) {
        this.itemMap = itemMap;
    }

    public Map<Integer, String> getTestMap() {
        return testMap;
    }

    public void setTestMap(Map<Integer, String> testMap) {
        this.testMap = testMap;
    }

    public List<String> getTestList() {
        return testList;
    }

    public void setTestList(List<String> testList) {
        this.testList = testList;
    }

    public String getTestStr() {
        return testStr;
    }

    public void setTestStr(String testStr) {
        this.testStr = testStr;
    }

    public int getTestInt() {
        return testInt;
    }

    public void setTestInt(int testInt) {
        this.testInt = testInt;
    }
}
